"""some algorithms for collision detection
cancel that, pygame has already done the job

See doc's on Rect page...example:
missileRect.collidelist(the list of alienRect's)
missileRect.colliderect(a single rect, eg a shield)

The only thing I can think of doing is wrapping these which is about as useful as warm beer."""

from pygame import Rect
def collisionSingle(rectMain, rectAlt):
	"""Useless function"""
	return rectA.colliderect(rectB)
	
def collisionMultiple(rectSource, rectList):
	"""Another useless function"""
	res = rectSource.collidelist(rectList)
	if res==-1:
		return False
	else:
		return res
